package com.bys.security;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
@Data
public class CrmGrantedAuthority implements GrantedAuthority {
    private String permission;

    public CrmGrantedAuthority() {
    }
    @Override
    public String getAuthority() {
        return permission;
    }

    public CrmGrantedAuthority(String permission) {
        this.permission = permission;
    }
}
